/*
{
  "id": 1,
  "device_id": 1,
  "device_name": "",
  "name": "DCIM",
  "created_at": "2020-07-18 21:56:48",
  "last_modify": "2020-07-18 22:03:30",
  "thumb": "/9j"
}
*/
class AlbumItemInfo {
  String createdAt;
  int deviceId;
  String deviceName;
  int id;
  String lastModify;
  String name;
  String thumb;

  AlbumItemInfo({this.createdAt, this.deviceId, this.deviceName, this.id, this.lastModify, this.name, this.thumb});

  static AlbumItemInfo fromJson(Map<String, dynamic> json) {
    return AlbumItemInfo(
      createdAt: json['created_at'],
      deviceId: json['device_id'],
      deviceName: json['device_name'],
      id: json['id'],
      lastModify: json['last_modify'],
      name: json['name'],
      thumb: json['thumb'],
    );
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['created_at'] = this.createdAt;
    data['device_id'] = this.deviceId;
    data['device_name'] = this.deviceName;
    data['id'] = this.id;
    data['last_modify'] = this.lastModify;
    data['name'] = this.name;
    data['thumb'] = this.thumb;
    return data;
  }
}
